package com.hao.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hao.eduservice.entity.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author hao
 * @since 2020-11-19
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     * 查询用户首页显示的4个老师
     *
     * @return {@link List<EduTeacher>}
     */
    List<EduTeacher> selectFrontTeacher();

    /**
     * 老师前台列表页面
     *
     * @param teacherPage 老师页面
     * @return {@link Map<String, Object>}
     */
    Map<String, Object> getTeacherFrontList(Page<EduTeacher> teacherPage);
}
